Objects Reference

directX::init_multiplayer

Prototype

int init_multiplayer(char *netaddress=0)

Parameters

Parameter Type Description
netaddress char * IP address of server when starting a client.
NULL for starting a server.

Return Value

Returns TRUE if initialization is OK (TCP/IP installed), FALSE if unable to initialize multiplayer.

Remarks

This function starts multiplayer mode by initializing TCP/IP. It must be called before creating servers or connecting to a game.
It should be called with netaddress=NULL for creating a server.
When creating a client, set netaddress to the server address from where the games will be enumerated from.